
class ClassName:

    d = {}

    def __init__(self, t):
        print t
        ClassName.d[t] = 'a'


    def show_name(self):
        print "class type", type(self.__class__)
        print "name type", type(self.__class__.__name__)
        self.h = {'key': 12, 'nyckel': 'word'}
        print "class is", self.__class__
        print "name is", self.__class__.__name__


fool = ClassName(1)
ClassName.show_name(fool)

print fool.__class__
print type(fool)
print fool.d
print fool.h
# fool.age = 1
# print hasattr(fool, 'age')
# print hasattr(fool, 'pio')
# print ClassName.__dict__
print __name__
